package com.xx.comm;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "jwt") //关联配置文件中jwt的数据
public class JwtProperties {

    //request header  : Authorization
    private String tokenHeader;
    /*对令牌解码*/
    private String secret;
    /*令牌过期时间*/
    private Long expiration;
}
